package marchsoft.utils;
/**
 * @title LocalDateTimeUtils
 * @description
 * @author Lenovo
 * @version 1.0
 * @create 2024-09-30 15:56
 */

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 *@title LocalDateTimeUtils
 *@description
 *@author Lenovo
 *@version 1.0
 *@create 2024-09-30 15:56
 */
public class LocalDateTimeUtils {

    public static LocalDateTime parseStringToDateTime(String time, DateTimeFormatter df) {
       return LocalDateTime.parse(time, df);
    }

    public static String getDateTimeToString(LocalDateTime localDateTime, DateTimeFormatter df) {
        return localDateTime.format(df);
    }

}
